import numpy as np
a = np.array([[1,2,3],[4,5,6]])
print(a.shape)
'''矩阵维度: (2, 3)'''

# 转化矩阵维度reshape
b = a.reshape(3,2)
print(b.shape)
print(b)
'''矩阵维度: (3, 2)

[[1 2]
 [3 4]
 [5 6]]
'''